package cn.kgm.orderStatus.impl;

import cn.kgm.orderStatus.AstractOrderState;
import cn.kgm.orderStatus.Order;
import cn.kgm.orderStatus.OrderState;

/**
 * @Author: Kappi
 * @Date: 2022-11-4 19:02
 * @ClassName: WaitPay
 * @Description: cn.kgm.orderStatus.impl WaitPay
 * @Version 1.8
 */
public class WaitPay extends AstractOrderState {

    public WaitPay(Order order) {
        super(order);
    }

    @Override
    public OrderState pay() {
        System.out.println("当前状态：" + this.getOrder().getStatus());
        // 支付代码
        return new Paid(this.getOrder());
    }
}
